<?php
return [
    'bootstrap' => [
        'queue',
    ],
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'cache' => [
            'class' => 'yii\redis\Cache',  //redis接管缓存
        ],
        'curl',
        'timeZone' => 'Asia/Shanghai',
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
            'useFileTransport' => true,
        ],

        //queue file驱动
//        'queue' => [
//            'class' => \yii\queue\redis\Queue::class,
//            'as log' => \yii\queue\LogBehavior::class,
//            'redis' => 'redis', // 连接组件或它的配置
//            'channel' => 'queue', // Queue channel key
//        ],
        // queue file驱动
        'queue' => [
            'class' => \yii\queue\redis\Queue::class,
            'as log' => \yii\queue\LogBehavior::class,
            'redis' => 'redis', // 连接组件或它的配置
            'channel' => 'queue', // Queue channel key
        ],
    ],
];
